package com.example.mongo_demo.entity;

import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;

@Data
@Document("student")
public class Student {
    @Id
    private String id;

    private String name;

    private Integer age;

    private String sex;

}
